package com.wjf.wjfaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;
public class LangChainAiInvoke {
    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(TestApiKey.API_KEY)
                .modelName("qwen-plus")
                .build();
        String chat = qwenChatModel.chat("What is the meaning of life?");
        System.out.println(chat);

    }
}
